<script>
	export default {
		onLaunch: function() {
			
			this.$store.state.userInfo = {}
			this.$store.state.userInfo.userId = 1
			// uni.hideTabBar();
			// 判断是否已经加载过配置
			const public_config = uni.getStorageSync('public_config');
			if (public_config === '') {
				// 从接口请求配置数据
				// uni.setStorageSync('public_config', '123456')
			}
			// console.log(public_config)
			this.$store.state.nav_tab_bar = [{
				index: '1',
				text: '首页',
				icon: '/static/images/menu11.png', //未选中图标
				icon_a: '/static/images/menu1.png', //选中图片
				path: "/pages/index/index1", //页面路径
			}, {
				index: '2',
				text: '分类',
				icon: '/static/images/menu11.png',
				icon_a: '/static/images/menu1.png',
				path: "/pages/index/index2",
			}, {
				index: '3',
				text: '我的',
				icon: '/static/images/menu11.png',
				icon_a: '/static/images/menu1.png',
				path: "/pages/index/index3",
			}, ]
		},
		onShow: function() {},
		onHide: function() {}
	}
</script>

<style>
</style>